<%@ page language="java" contentType="text/html; charset=UTF-8" 
    pageEncoding="UTF-8"%>
<%
	//Pega o usuario que foi colocado na sessao quando logou
	Object usuario = session.getAttribute("usuario");	
	//Se esse usuario for igual a null significa que o usuario não está logado
	if(usuario == null){
		String url = request.getServletPath().toString();
		//Coloca url desejada para fazer redirect após logar
		session.setAttribute("url", url);

		response.sendRedirect("login.jsp");
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Cadastro curriculo</title>

	<script type="text/javascript" src="recursos/js/funcoes.js"></script>
	<script type="text/javascript" src="recursos/js/formacaoacademica.js"></script>
	<script type="text/javascript" src="recursos/js/formacaocomplementar.js"></script>
	<script type="text/javascript" src="recursos/js/atuacaoprofissional.js"></script>
	<script type="text/javascript" src="recursos/js/producaobibliografica.js"></script>
	<script type="text/javascript" src="recursos/js/informacoes.js"></script>
	<script type="text/javascript" src="recursos/js/endereco.js"></script>
	
	<link  rel=stylesheet href="recursos/css/template.css" type="text/css"> 
	<link  rel=stylesheet href="recursos/css/cadastro.css" type="text/css"> 
	
	<script type="text/javascript" src="recursos/js/jquery-1.8.1.js"></script> 
	<script type="text/javascript">  
              
            $( document ).ready( function(){  
                  
                $( "#informacaoInclude" ).load( "informacoes.html" );
                $( "#enderecoInclude" ).load( "endereco.html" );
                $( "#formacaoacademicaInclude" ).load( "formacaoacademica.html" );
                $( "#formacaocomplementarInclude" ).load( "formacaocomplementar.html" );
                $( "#atuacaoprofissionalInclude" ).load( "atuacaoprofissional.html" );
                $( "#producaobibliograficaInclude" ).load( "producaobibliografica.html" );
            });  
              
        </script> 
	
</head>
<body>
	<div id="recipiente">
		<jsp:include page="cabecalho.jsp"></jsp:include>
		<br />
		
		<div id="corpo">
			      <div class = "tituloCadastro">
			      <br /><br />
			      <h1> &emsp;<b>Cadastre seu Currículo</b></h1>
			      <hr class ="horizontalLine"/><br />
			      </div>
			      <br /><br />
			    
			<form name="input" action="cadastrocurriculoservlet" method="post" onsubmit="return validarForm();" accept-charset="UTF-8">
				<div id="informacaoInclude"></div>
				<div id="enderecoInclude"></div>
				<div id="formacaoacademicaInclude"></div>
				<div id="formacaocomplementarInclude"></div>
				<div id="atuacaoprofissionalInclude"></div>
				<div id="producaobibliograficaInclude"></div>
				<br />
				<div class="formBotoes">
					<input type="reset" value="resetar" />
					<input type="submit" value="Enviar" />
				</div>
				<br />
			</form>
		</div>
	</div>
</body>
</html>